package com.aaa.service.fpa.impl;

import com.aaa.dao.fpa.TFpaRecordDedtailMapper;
import com.aaa.entity.TFpaRecordDedtail;
import com.aaa.service.fpa.TFpaRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TFpaRecordDedtail)表服务实现类
 *
 * @author yuyongli
 * @since 2022-10-26 16:53:12
 */
@Service
public class TFpaRecordDedtailServiceImpl implements TFpaRecordDedtailService {
   @Autowired
   private TFpaRecordDedtailMapper tFpaRecordDedtailMapper;

   @Override
   public boolean insertBatch(List<TFpaRecordDedtail> details) {
      int i=0;
      for (TFpaRecordDedtail detail : details) {
         i+=tFpaRecordDedtailMapper.insert(detail);
      }
      return details.size()==i;
   }
}

